<template>
  <div class="shop">
    店铺 {{id}}
    <router-link to="/shop/2">店铺2</router-link>
    <router-link to="/shop/3">店铺3</router-link>
    <router-link to="/shop/4">店铺4</router-link>
    <router-link to="/shop/5">店铺5</router-link>
  </div>
</template>
<script>
export default {
  data() {
    let params = this.$route.params;
    return {
      id: params.id
    };
  },
  computed: {},
  props: {},
  watch: {
    route: "refresh"
  },
  methods: {
    refresh() {
      this.id = this.$route.params.id;
    }
  },
  components: {},
  mounted() {}
};
</script>
<style lang="less">
.shop {
}
</style 店铺